//
//  SettingCell.m
//  血氧宝
//
//  Created by YFB on 15/4/16.
//  Copyright (c) 2015年 上海贝瑞电子科技. All rights reserved.
//

#import "SettingCell.h"
#import "FitHeader.h"
@implementation SettingCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _leftView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 18 *FitHeight, 32 *FitWidth, 32 *FitHeight)];
        [self.contentView addSubview:_leftView];
        
        _line = [[UILabel alloc]initWithFrame:CGRectMake(_leftView.frame.origin.x + _leftView.frame.size.width + 5 *FitWidth, 49 *FitHeight, 296 *FitWidth, 1 *FitHeight)];
        _line.backgroundColor = [UIColor colorWithWhite:1 alpha:0.5];
        [self.contentView addSubview:_line];
        
        _nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(_leftView.frame.origin.x + _leftView.frame.size.width + 5*FitWidth, 15 *FitHeight, 100 *FitWidth, 30 *FitHeight)];
        _nameLabel.textAlignment = 0;
        _nameLabel.textColor = [UIColor whiteColor];
        _nameLabel.font = [UIFont fontWithName:@"HiraginoSansGB-W3" size:15];
        [self.contentView addSubview:_nameLabel];
        
        _rightArrow = [[UIImageView alloc]initWithFrame:CGRectMake(self.frame.size.width - 6 *FitWidth, 22 *FitHeight, 6 *FitWidth, 10 *FitHeight)];
        _rightArrow.image = [UIImage imageNamed:@"set006@2x"];
        [self.contentView addSubview:_rightArrow];
        
    }
    return self;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
